﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Template.WinForm
{
    /// <summary>
    /// 根据提供的路径声明菜单的规则。
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class MenuAttribute : Attribute
    {
        /// <summary>
        /// 根据提供的路径声明菜单的规则。
        /// </summary>
        /// <param name="path">路由的路径参数</param>
        public MenuAttribute(string path)
        {
            Path = path;
        }

        /// <summary>
        /// 获取路由的路径参数。
        /// </summary>
        public string Path { get; }
    }
}
